if (typeof(jQuery) == 'undefined'){
	var e = document.createElement('script');
	e.type = 'text/javascript';
	e.src = 'http://code.jquery.com/jquery-latest.min.js';
	e.onload = function(){jQueryReady()};
	document.getElementsByTagName('head')[0].appendChild(e);
}
else jQueryReady();

function jQueryReady(){	
	$.getScript('http://alexgorbatchev.com/pub/sh/current/scripts/shCore.js', function() {
			$.getScript('http://alexgorbatchev.com/pub/sh/current/scripts/shBrushXml.js', function() {
					if (document.createStyleSheet){
						document.createStyleSheet('http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css');
						document.createStyleSheet('http://alexgorbatchev.com/pub/sh/current/styles/shCore.css');
					}
					else {
						$("<link/>", { rel: "stylesheet", type: "text/css", href: "http://alexgorbatchev.com/pub/sh/current/styles/shCore.css" }).appendTo("head");
						$("<link/>", { rel: "stylesheet", type: "text/css", href: "http://alexgorbatchev.com/pub/sh/current/styles/shThemeDefault.css" }).appendTo("head");
					}
					var p = '<pre class="brush: xml" style="position:fixed;top:0;left:0;width:100%;height:100%;white-space:normal;word-wrap:break-word;text-align:left;background:#fff;z-index:9999999;overflow:auto;margin:0;font-family:monospace">';
					var s = '</pre>';
					$.get(document.location.pathname, function(data){
													      $('body').append(p + data.replace(/</g,"&lt;") + s);
														  document.getElementsByTagName('head')[0].innerHTML += '<script>SyntaxHighlighter.all();</script>';
													  })
						.fail(function(jqxhr, settings, exception) {
							window.open('https://developers.facebook.com/tools/debug/og/echo?q='+encodeURIComponent(document.location.href));
						});
				})
				.fail(function(jqxhr, settings, exception) {
				
				});
		})
		.fail(function(jqxhr, settings, exception) {
		
		});
	
}